package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Guarantee {
    //id
    private Long id;

    //保修单号
    private String sn;

    //保修客户
    private String employee_id;

    //保修到期时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date expirationDate = new Date();

    //保修明细
    private String guaranteeDetails_id = "详见保修单明细";

    //所属租户
    private String tenant_id;

}
